<?php
include_once ('../../global.php');

$type = $_GET['type'];
$biaoji = $_GET['biaoji'];

// 公共标题部分
echo '<div style="font-size:22px;font-weight:500;text-align:center;margin-top:20px;" class="'.$css_class.'">'.t('test_drive').'</div>';

if ($type == 1) {
    // 球员家长内容
    $subTitle = t('test_drive_parent_intro');
    $content = '
        <div style="width:100%;margin-bottom:3.4vw;padding-left:3.4vw;font-size:3.5vw;" class="'.$css_class.'">❖ '.t('player_parents').'</div>
        <div style="margin-top:4px;margin-bottom:4px;height:30px;width:100%;padding-left:12vw" class="'.$css_class.'"><font class="poppin">'.t('date_12_9_13').'</font></div>
        <div style="margin-top:4px;margin-bottom:4px;height:30px;width:100%;padding-left:12vw" class="'.$css_class.'"><font class="poppin">'.t('09_00_11_45').'</font></div>
        <div style="margin-top:4px;margin-bottom:4px;height:30px;width:100%;padding-left:12vw" class="'.$css_class.'"><font class="poppin">'.t('group_A').'</font></div>
        <div style="margin-top:4px;margin-bottom:4px;height:30px;width:100%;padding-left:12vw" class="'.$css_class.'"><font class="poppin">'.t('group_B').'</font></div>
        <div style="margin-top:4px;margin-bottom:4px;height:30px;width:100%;padding-left:12vw;" class="'.$css_class.'">'.t('route').'</div>
        ';
    $buttonText = t('parents_signup_button');
} elseif ($type == 2) {
    // 会员及嘉宾内容
    $subTitle = t('test_drive_member_intro');
    $content = '
        <div style="margin-top:4px;margin-bottom:4px;height:30px;width:100%;" class="'.$css_class.'">❖ '.t('members_and_guests').'</div>
        <div style="margin-top:4px;margin-bottom:4px;height:30px;width:100%;padding-left:12vw;" class="'.$css_class.'">'.t('date_12_9_13').' <font class="poppin">14:00-16:00</font></div>
        <div style="margin-top:4px;margin-bottom:4px;height:30px;width:100%;padding-left:12vw;" class="'.$css_class.'">'.t('route').'</div>';
    $buttonText = t('members_signup_button');
}

// 副标题
echo '<div style="font-size:22px;font-weight:500;text-align:center;margin-top:20px;" class="'.$css_class.'">' . $subTitle . '</div>';

// 内容
echo '<div style="font-size:14px;margin-top:20px;width:92%;margin-left:4%;margin-bottom:50px;display:flex;align-items:center;flex-direction:column;justify-content:flex-start;" class="'.$css_class.'">' . $content . '</div>';

// 报名按钮
if (isset($buttonText)) {
    echo '<a href="testdrive-detail.php?cls_id=2&type=' . $type . '&biaoji=' . $biaoji . '" style="text-decoration:none;color:#fff;">
        <div style="width:260px;height:50px;margin-left:auto;display:flex;justify-content:center;margin-right:auto;
        align-items:center;border-radius:10px;border:2px solid #fff;margin-bottom:30px;" class="'.$css_class.'">' . $buttonText . '</div></a>';
}

// 温馨提示区
echo '<div style="font-size:14px;margin-top:20px;width:92%;margin-left:4%;margin-bottom:160px;display:flex;align-items:center;flex-direction:column;justify-content:flex-start;">
    <div style="margin-top:4px;margin-bottom:4px;height:30px;width:100%;">温馨提示：</div>
    <div style="padding-left:14px;margin-top:4px;margin-bottom:4px;height:30px;width:100%;"><img src="./images/icon_point.png" style="width:11px;height:11px;"/> 驾龄需满<span class="poppin"> 1 </span>年及以上</div>
    <div style="padding-left:14px;margin-top:4px;margin-bottom:4px;height:30px;width:100%;"><img src="./images/icon_point.png" style="width:11px;height:11px;"/> 请至少提前 <span class="poppin">24</span> 小时预约</div>
    <div style="padding-left:14px;margin-top:4px;margin-bottom:4px;height:30px;width:100%;"><img src="./images/icon_point.png" style="width:11px;height:11px;"/> 试驾当日请提供驾驶证原件（或电子版本）</div>
</div>';
?>

